# -*- coding: utf-8 -*-
"""
Created on Wed Nov 25 15:45:35 2015

@author: liliangrong
"""

def geturl(url):
    
    import urllib
    from bs4 import BeautifulSoup
    
    html = urllib.urlopen(url)
    bs_obj = BeautifulSoup(html,"html.parser")
    content = bs_obj
    print content
    #print "===================" + url + "========================"
newurl = "http://api.map.baidu.com/direction/v1?mode=driving&origin='+str1+'&destination='+str2+'&origin_region='+str3+'&destination_region='+str3+'&output=json&tactics=11&ak=IiOwgW7sFcS2UGwnfyx048su"
print geturl(newurl)